package com.wanmait.recruit.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruit.mapper.RoleMapper;
import com.wanmait.recruit.pojo.Role;
import com.wanmait.recruit.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("roleService")
public class RoleServiceImp implements RoleService {
    @Resource
    private RoleMapper roleMapper;
    @Override
    public List<Role> findAll() {
        return roleMapper.findAll();
    }

    @Override
    public Role findById(Integer id) {
        return roleMapper.findById(id);
    }

    @Override
    public void insert(Role object) {

    }

    @Override
    public void delete(Role object) {

    }

    @Override
    public void update(Role object) {

    }

    @Override
    public PageInfo<Role> search(int pageNum, int pageSize) {
        return null;
    }
}
